package com.demo.controller;

import com.demo.entity.User;
import com.demo.service.UserService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * @ClassName: UserController
 * @Description: TODO
 **/

@Controller
public class UserController {

    @Resource
    private UserService userService;

    public void findById(int id){
        User user = userService.findById(id);
        System.out.println(user);
    }
}
